home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-04 | 2.9 KB | 60 lines | [TEXT/CWIE] |
- // MADE - Macintosh Application Development Essentials
- // ---------------------------------------------------
-
- // (c) Gideon Greenspan, Sig Software - June 1997 - http://www.kagi.com/gdg/
-
- // These files can only be used for experimental standalone purposes. To obtain
- // fully commented code, and licenses for standalone, shareware, internal and
- // commercial usage, run the enclosed Register application.
-
- // Essential Settings.h
- //
- // A header file containing all the necessary settings for the MADE package.
- //
- // Version 1.0.0 - 10th November 1996
- // Version 1.0.1 - 4th June 1997
- // Fixed macro, function names
-
- #define Project_Under_Development true
- // Controls all assertions. If true, any Assert statement will be checked,
- // and if they fail a dialog box with several options will be displayed.
- // If false, Assert statements are ignored, and next 3 options don't matter.
- #define Initialise_Allocated_Memory true
- // Overwrites memory before and after use with OxAA bytes. This is extremely
- // useful for eliminating intermittent errors where non-initialised memory is
- // used. Now you'll always get an error, and will be able to spot the 0xAA
- // values. Used in AllocPtr, AllocHandle, DestroyPtr, DestroyHandle.
- #define Assert_Memory_Locking true
- // Ensures status is changed when locking or unlocking handles. This is useful
- // where you might have one function inside another which passes it a handle.
- // If both outer and inner functions lock and unlock the handle, there will
- // be a point where the outer functions expects the handle to be locked, but
- // it will have been unlocked. Used in LockHandle, UnlockHandle.
- #define Move_On_Handle_Allocation true
- // Moves memory around whenever a handle is allocate. This helps identify
- // intermittent dangling-pointer errors where the referred block has been
- // moved elsewhere, but some code still expects it to be in the same place.
- // Now such code will almost always fail, instead of just when memory is
- // tight. Used in AllocHandle only.
-
- #define Use_AppleEvents true
- // Brings in code to deal with AppleEvents
- #define Insist_On_AppleEvent_Support true
- // Complains then quits if no AppleEvent manager
- #define Handle_Open_Documents_Event true
- // Creates and installs handler for Open Documents event
- #define Handle_Print_Documents_Event true
- // Creates and installs handler for Print Documents event
- #define Handle_Quit_Application_Event true
- // Creates and installs handler for Quit Application event
-
- #define Use_Drag_Manager true
- // Brings in code to deal with Drag receiving and tracking
- #define Insist_On_Drag_Manager_Support true
- // Complains then quits if no drag manager
-
- #define Emergency_Memory_Reserve 16384
- // Number of bytes to reserve for error handling
- #define Event_Sleep_Time 6
- // Number of 'ticks' to give background processes at idle time
-